package mmoon.mmoonstory.interfaces;

import mmoon.mmoonstory.MMoonAll;
import mmoon.mmoonstory.MMoonStory;
import net.minecraft.enchantment.Enchantment;

public interface InitEnchantment {
    String ObjID = "Null";

    default void init(String objID) {
        MMoonAll.MMOON_ENCHANTMENTS.add(this.setID(objID));
    }

    default Enchantment setID(String objID) {
        Enchantment enchantment = (Enchantment) this;
        enchantment.setName(objID);
        enchantment.setRegistryName(MMoonStory.MOD_ID, objID);
        return enchantment;
    }
}
